<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String Public = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/Public/";
	String root_path = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>北京嘉博伟创科技发展有限公司</title>
	<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<script type="text/javascript" src="<%=Public%>js/jquery.min.js"></script>
	<script type="text/javascript" src="<%=Public%>js/admin_login.js"></script>
<script type="text/javascript">
$(function() {
	$("body").click(function() {
		});
	$(".send").click(function() {
	
		var UserName = $("#UserName");
		var PassWord = $("#PassWord");
		
		if (UserName.val() == "" || UserName.val().length < 2 || UserName.val().length > 32) 
		{
			alert('警告：用户名不得为空并且不得小于2位并且不得大于32位！');
			return false;
		}
		if (PassWord.val() == "" || PassWord.val().length < 6 || PassWord.val().length > 32) 
		{
			alert('警告：密码不得为空并且不得小于6位并且不得大于32位！');
			return false;
		}
		
		$("form:first").submit();
	});

	$("body").keydown(function(event){
		 if(event.keyCode==13){
			var UserName = $("#UserName");
			var PassWord = $("#PassWord");
			
			if (UserName.val() == "" || UserName.val().length < 2 || UserName.val().length > 32) 
			{
				alert('警告：用户名不得为空并且不得小于2位并且不得大于32位！');
				UserName.focus();
				return false;
			}
			if (PassWord.val() == "" || PassWord.val().length < 6 || PassWord.val().length > 32) 
			{
				alert('警告：密码不得为空并且不得小于6位并且不得大于32位！');
				PassWord.focus();
				return false;
			}
			 $("form:first").submit();	 
		 }
	});
	
	$(".reset").click(function() {
		$(":input").val("");
	});
});
</script>
<style type="text/css">
<!--
body {
	margin: 0px;
	padding: 0px;
	overflow: hidden;
}

.STYLE3 {
	font-size: 12px;
	color: #adc9d9;
}
-->
</style>
	</head>

	<body>
		<form id="adminLogin" name="login" method="post" action="Staff!Check.action">
			<table width="100%" height="100%" border="0" cellspacing="0"
				cellpadding="0">
				<tr>
					<td bgcolor="#1075b1">
						&nbsp;
					</td>
				</tr>
				<tr>
					<td height="608" background="<%=Public%>images/login_03.gif">
						<table width="847" border="0" align="center" cellpadding="0"
							cellspacing="0">
							<tr>
								<td height="318" background="<%=Public%>images/login_04.gif">
									&nbsp;
								</td>
							</tr>
							<tr>
								<td height="84">
									<table width="100%" border="0" cellspacing="0" cellpadding="0">
										<tr>
											<td width="381" height="84"
												background="<%=Public%>images/login_06.gif">
												&nbsp;
											</td>
											<td width="162" valign="middle"
												background="<%=Public%>images/login_07.gif">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td width="44" height="24" valign="bottom">
															<div align="right">
																<span class="STYLE3">用户</span>
															</div>
														</td>
														<td width="10" valign="bottom">
															&nbsp;
														</td>
														<td height="24" colspan="2" valign="bottom">
															<div align="left">
																<input type="text" name="staff.Username" id="UserName"
																	style="width: 100px; height: 17px; background-color: #87adbf; border: solid 1px #153966; font-size: 12px; color: #283439;">
															</div>
														</td>
													</tr>
													<tr>
														<td height="24" valign="bottom">
															<div align="right">
																<span class="STYLE3">密码</span>
															</div>
														</td>
														<td width="10" valign="bottom">
															&nbsp;
														</td>
														<td height="24" colspan="2" valign="bottom">
															<input type="password" name="staff.Password" id="PassWord"
																style="width: 100px; height: 17px; background-color: #87adbf; border: solid 1px #153966; font-size: 12px; color: #283439;">
														</td>
													</tr>
													<tr>
														<td height="24" valign="bottom">
															<div align="right">
																<span class="STYLE3">验证码</span>
															</div>
														</td>
														<td width="10" valign="bottom">
															&nbsp;
														</td>
														<td width="52" height="24" valign="bottom">
															<input type="text" name="textfield3" id="textfield3"
																style="width: 50px; height: 17px; background-color: #87adbf; border: solid 1px #153966; font-size: 12px; color: #283439;">
														</td>
														<td width="62" valign="bottom">
															<div align="left">
																<img src="<%=Public%>images/yzm.gif" width="38"
																	height="15">
															</div>
														</td>
													</tr>
													<tr></tr>
												</table>
											</td>
											<td width="26">
												<img src="<%=Public%>images/login_08.gif" width="26"
													height="84">
											</td>
											<td width="67" background="<%=Public%>images/login_09.gif">
												<table width="100%" border="0" cellspacing="0"
													cellpadding="0">
													<tr>
														<td height="25">
															<div align="center">
																<img src="<%=Public%>images/dl.gif" width="57"
																	height="20" class="send">
															</div>
														</td>
													</tr>
													<tr>
														<td height="25">
															<div align="center">
																<img src="<%=Public%>images/cz.gif" width="57"
																	height="20" class="reset">
															</div>
														</td>
													</tr>
												</table>
											</td>
											<td width="211" background="<%=Public%>images/login_10.gif">
												&nbsp;
											</td>
										</tr>
									</table>
								</td>
							</tr>
							<tr>
								<td height="206" background="<%=Public%>images/login_11.gif">
									&nbsp;
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr>
					<td bgcolor="#152753">
						&nbsp;
					</td>
				</tr>
			</table>
		</form>
	</body>
</html>